/*
 * @Author: lbt666 '1319451895@qq.com'
 * @Date: 2022-07-25 13:42:39
 * @LastEditors: lbt666 lbt666@@
 * @LastEditTime: 2023-05-04 18:05:01
 * @Description: 入口文件
 */
import { createApp } from 'vue'
import './style.css'
import App from './App'
import store from './store'
import router from './router'
import { NumFormat, getUnixToDate, plusXing, copy } from '@/utils/filter'
import { userAuthorization } from '@/utils/LoginAuthorization'
// vant 组件
import {
  Button, Tabbar, TabbarItem, NavBar, ActionSheet,
  List, Cell, Field, Form, Loading, Swipe, SwipeItem,
  Stepper, Overlay, Tab, Tabs, Tag, Sticky, RadioGroup,
  Radio, Empty, Popup
} from 'vant';
// Toast
import 'vant/es/toast/style';
// Dialog
import 'vant/es/dialog/style';
// 合约
import './contractInstantiation'

const app = createApp(App)

// 全局方法挂载
app.config.globalProperties.NumFormat = NumFormat
app.config.globalProperties.getUnixToDate = getUnixToDate
app.config.globalProperties.plusXing = plusXing
app.config.globalProperties.copy = copy
app.config.globalProperties.userAuthorization = userAuthorization

app.use(store)
app.use(router)
app.use(Button)
app.use(Tabbar)
app.use(TabbarItem)
app.use(NavBar)
app.use(ActionSheet)
app.use(List)
app.use(Cell)
app.use(Field)
app.use(Form)
app.use(Loading)
app.use(Swipe);
app.use(SwipeItem);
app.use(Stepper);
app.use(Overlay);
app.use(Tab);
app.use(Tabs);
app.use(Tag);
app.use(Sticky);
app.use(Radio);
app.use(RadioGroup);
app.use(Empty);
app.use(Popup);
app.mount('#app')
